Skip to content

Sync bunfig schema with latest docs#5682

Merged
hyperupcall merged 1 commit into
SchemaStore:masterfrom
DanielMiddleton:update-bunfig-schema-2026-05
May 13, 2026
Merged

Sync bunfig schema with latest docs#5682
hyperupcall merged 1 commit into
SchemaStore:masterfrom
DanielMiddleton:update-bunfig-schema-2026-05

Conversation

@DanielMiddleton
Copy link
Copy Markdown
Contributor

Summary

This PR updates Bun configuration support to match the latest bunfig.toml docs, continuing the work from #5501.

What Changed

Each added field was cross-referenced against the authoritative docs source at oven-sh/bun/docs/runtime/bunfig.mdx — only fields with clear documentation have been added.

New Schema Coverage

  • Top-level:
    • new [serve] section
      • serve.port
  • [test]:
    • coverageIgnoreSourcemaps
  • [install]:
    • ignoreScripts
    • concurrentScripts
    • prefer ("online" | "offline" | "latest")
    • globalStore
    • publicHoistPattern
    • hoistPattern
    • logLevel
  • [run]:
    • elide-lines
    • noOrphans

Validation

  • jq empty src/schemas/json/bunfig.json
  • node ./cli.js check
  • prettier --check src/schemas/json/bunfig.json src/test/bunfig/bunfig.toml

Add fields newly documented since SchemaStore#5501:

- Top-level: `[serve]` section with `serve.port`
- `[test]`: `coverageIgnoreSourcemaps`
- `[install]`: `ignoreScripts`, `concurrentScripts`, `prefer`,
  `globalStore`, `publicHoistPattern`, `hoistPattern`, `logLevel`
- `[run]`: `elide-lines`, `noOrphans`

Cross-referenced against the authoritative docs source at
oven-sh/bun/docs/runtime/bunfig.mdx.
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

@hyperupcall
Copy link
Copy Markdown
Member

Thanks

@hyperupcall hyperupcall merged commit fb989d4 into SchemaStore:master May 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants